body {
  background: url(../images/bg2.jpg) no-repeat;
  // background-position: cover;
  background-size: cover;
  position: relative;
}
$blue: skyblue;
.con {
  width: 100%;
  max-width: 768px;
  // margin: 50px auto;
  padding: 20px 0 20px 0;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  .btn_box {
    width: 100%;
    padding-top: 30px;
    display: flex;
    justify-content: space-around;

    .btn {
      width: 25%;
      height: 40px;
      line-height: 40px;
      text-align: center;
      border-radius: 5px;
      overflow: hidden;
      box-shadow: 2px 2px 2px 1px #ccc;
      color: #fff;
      // &:hover {
      //   background-color: $blue;
      //   border: 1px solid$blue;
      //   box-shadow: 2px 2px 2px $blue;
      //   color: #fff;
      //   cursor: pointer;
      // }
    }
    .again {
      background-color: rgb(218, 68, 68);
    }
    .home {
      background-color: skyblue;
    }
    .next {
      background-color: orange;
    }
  }

  .record_box {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-top: 25px;
    font-size: 20px;
    color: #f2f2f2;
  }

  .game_box {
    margin-top: 20px;
    .row {
      //   background: rgba(0, 0, 0, 0.5);
      display: flex;
      justify-content: space-around;
      flex-wrap: wrap;
    }
    .outbd {
      // width: 20%;
      width: 20vw;
      max-width: 80px;
      height: 20vw;
      max-height: 80px;
      border-radius: 10px;
      overflow: hidden;
      margin: 1vw;
    }
    .item {
      width: 100%;
      height: 100%;
      position: relative;
      transition: all 0.5s;
      transform-style: preserve-3d;
       user-select: none;

      .front {
        width: 100%;
        height: 100%;
        background-color: skyblue;
        // transform: rotateY(0deg) translateZ(1px);
        transform: rotateY(0deg);
        position: absolute;
        top: 0;
        left: 0;
        z-index: 10;
      }
      .back {
        width: 100%;
        height: 100%;
        position: absolute;
        // transform: rotateY(180deg) translateZ(1px);
        transform: rotateY(180deg);
        top: 0;
        left: 0;
        // opacity: 0;
        // display: none;
        .back_img {
          width: 100%;
          height: 100%;
        }
      }
    }
  }
}
.act {
  transform: rotateY(180deg);
  //   opacity: 0;
}
.start_act {
  transform: rotateY(-180deg);
  //   opacity: 0;
}
//相同消失
.disappear {
  transform: rotateY(180deg) scale(0);
  // transform: scale(0);
}
.mask {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 666;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  .end {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    h1 {
      color: #fff;
    }
    h3 {
      color: #f2f2f2;
    }
    .btn_box {
      display: flex;
      margin-top: 30px;
      justify-content: space-around;

      .btn {
        width: 40%;
        height: 40px;
        line-height: 40px;
        border-radius: 5px;
        overflow: hidden;
        background-color: #fff;
        &:hover {
          background-color: $blue;
          border: 1px solid$blue;
          box-shadow: 2px 2px 2px $blue;
          color: #fff;
          cursor: pointer;
        }
      }
    }
  }
}
